<template>
  <common-crud ref="sysDict" :crudOptionProps="crudOptionProps"></common-crud>
</template>

<script>
import commonCrud from "@/components/commonCrud/CommonCrud.vue"

export default {
  name: "sysDict",
  components: {commonCrud},
  data() {
    return {
      // 表配置
      crudOptionProps: {
        name: 'sys/dict',
        apiPrefix: '/system/sysDict',
        // 是否云原生
        // functionTarget: 'sysDict',
        permissionOption: {
          enable: true
        },
        tableOption: {
          menuWidth: 320,
          column: [

            {
              label: "字典类型",
              prop: "type",
              search: true,
              required: true,

            },


            {
              label: "字典描述",
              prop: "description",
              search: false,
              required: false,

            },


          ]
        },
        // 按钮
        buttonList: [

          {
            menuType: "menu",
            name: "字典项配置",
            icon: "View",
            mode: 'dialog',
            component: '../../views/admin/sysdict/sysDictItem',
            permission: "sys:dict:item",

            info: {
              prop: "id",
              // 组件标题
              title: ' 字典项配置',
              //是否初始化init方法
              isInit: true
            }
          }
        ]

      }

    }
  }, created() {

  }, computed() {

  }, methods: {}
}
</script>

<style scoped>

</style>
